package com.example.hssmgs.Student;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

// 快速获取SQLiteDatabase对象

public class CommonDatabase {
    private DBOpenHelper dbhelper;
    private SQLiteDatabase sqlite;
    public SQLiteDatabase getSqliteObject(Context context, String db_name){
        dbhelper=new DBOpenHelper(context,db_name,null,1);
        sqlite = dbhelper.getWritableDatabase();
        return sqlite;
    }
}
